package com.prothink.entity;

import lombok.Data;

import java.util.Date;

/**
 * @description：优惠券列表
 * @author     ：wangchong
 * @date       ：${DATE} ${TIME}
 */
@Data
public class UserCoupon {

    private Integer couponId; //优惠卷信息主键(优惠卷信息表)
    private Integer couponCode; //优惠券编号
    private String couponName; //优惠卷名称
    private String couponPrice; //优惠卷金额
    private String pictureUrl; //图片路径
    private Date startDate; //开始时间
    private Date endDate; //结束时间
    private Integer online; //是否上线(2上线，3不上线)
    private Integer grant; //发放方式(2自动发放，3活动领取，4人工发放，5无限制)
    private Integer issueQuantity; //发行数量
    private Integer used; //已使用数量
    private Integer type; //类型(2商品，3视频，4无限制)
    private Integer createId; //创建人
    private Date createDate; //创建时间
    private Integer updateId; //更新人
    private Date updateDate; //更新时间

    private String note;//备注
    private Integer userId; //用户ID
    private String account; //用户账号
    private String nickname; //用户别名
    private Integer cou; //发行优惠券总和
    private Integer uss;//各个用户已使用优惠券总数量
    private Integer unused;//各个用户未使用优惠券数量

    private Date useDate;//优惠券使用时间
    private Integer orderNo;//订单编号
    public UserCoupon() {
    }

    public UserCoupon(Integer couponId, Integer couponCode, String couponName, String couponPrice, String pictureUrl, Date startDate, Date endDate, Integer online, Integer grant, Integer issueQuantity, Integer used, Integer type, Integer createId, Date createDate, Integer updateId, Date updateDate, String note, Integer userId, String account, String nickname, Integer cou, Integer uss, Integer unused, Date useDate, Integer orderNo) {
        this.couponId = couponId;
        this.couponCode = couponCode;
        this.couponName = couponName;
        this.couponPrice = couponPrice;
        this.pictureUrl = pictureUrl;
        this.startDate = startDate;
        this.endDate = endDate;
        this.online = online;
        this.grant = grant;
        this.issueQuantity = issueQuantity;
        this.used = used;
        this.type = type;
        this.createId = createId;
        this.createDate = createDate;
        this.updateId = updateId;
        this.updateDate = updateDate;
        this.note = note;
        this.userId = userId;
        this.account = account;
        this.nickname = nickname;
        this.cou = cou;
        this.uss = uss;
        this.unused = unused;
        this.useDate = useDate;
        this.orderNo = orderNo;
    }
}
